package com.whj.apipassenger.request;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

@Data
public class SendVerificationCodeDTO {

    @NotBlank(message = "手机号不能为空！")
    @Pattern(regexp = "^1[3,4,5,6,7,8,9]\\d{9}$",message = "手机号格式不匹配！")
    //手机号
    private String passengerPhone;

    //验证码
    private String verificationCode;

}
